const Events=require('yg-Events');
cc.Class({
    extends: cc.Component,

    properties: {

    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {
        Events.on('myBullet',this.myBullet,this);
    },
    //x,y出现的坐标  frameX,frameY每帧移动的坐标 type子弹类型  rotation子弹旋转角度
    myBullet(x,y,frameX,frameY,type,rotation){
        console.log(x,y,type,rotation);
    },
    onDestroy(){
        Events.removeAllListeners('myBullet');
    }

    // update (dt) {},
});
